package week7;

import java.text.*;
import java.util.*;
public class SimpleDateFormatDemo {
    public static void main(String[] args) {
        DateFormat dateFormat = new SimpleDateFormat(
                args.length == 0 ? "yyyy-ww-DD" : args[0]);
        System.out.println(dateFormat.format(new Date()));
    }
}
